package com.shop.cereshop.admin.page.index;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel("区域统计数据响应")
public class RegionStatsVO {
    @ApiModelProperty("省份名称，全国统计时为null")
    private String province;

    @ApiModelProperty("城市名称，省级统计时为null")
    private String city;

    @ApiModelProperty("用户总数")
    private int totalUsers = 0;

    @ApiModelProperty("新增用户数")
    private int newUsers = 0;

    @ApiModelProperty("店铺总数")
    private int totalShops = 0;

    @ApiModelProperty("新增店铺数")
    private int newShops = 0;

    @ApiModelProperty("消费金额")
    private BigDecimal consumptionAmount;

    @ApiModelProperty("新增用户环比增长率")
    private BigDecimal newUsersRelativeRate = BigDecimal.ZERO.setScale(2, BigDecimal.ROUND_HALF_UP);

    @ApiModelProperty("新增店铺环比增长率")
    private BigDecimal newShopsRelativeRate = BigDecimal.ZERO.setScale(2, BigDecimal.ROUND_HALF_UP);

    @ApiModelProperty("消费金额环比增长率")
    private BigDecimal consumptionAmountRelativeRate = BigDecimal.ZERO.setScale(2, BigDecimal.ROUND_HALF_UP);
}
